<template>
  <div>
    <a href="http://www.baidu.com" @click="go1">百度一下</a>
    <a href="http://www.baidu.com" @click="go2(4,$event)">百度两下</a>
  </div>
</template>

<script>
export default {
  methods: {
    go1(e) {
      e.preventDefault();
    },
    go2(n,e){
        console.log(n);
        e.preventDefault()
    }
  },
};
</script>

<style>
</style>